Repository navigation
chore: upgrade NATS server to 2.14.9 and nats.go to v1.53.1 - oss - #7079
Merged
Merged
Conversation
- nats 2.9.3-alpine -> 2.14.9-alpine - nats-server-config-reloader 0.6.2 -> 0.25.0 - prometheus-nats-exporter 0.9.0 -> 0.20.3 - nats-box pinned to 0.20.1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Also moves nkeys to v0.4.15 and klauspost/compress to v1.18.5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
prakash100198
requested review from
prakarsh-dt and
vivek-devtron
as code owners
November 4, 2026 13:25
|
Bito Automatic Review Skipped - Branch Excluded |
This was referenced Nov 4, 2026
|
Shivam-nagar23
approved these changes
Nov 13, 2026
vivek-devtron
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Fixes https://github.com/devtron-labs/sprint-tasks/issues/2993
Upgrades the bundled NATS server from 2.9.3 to 2.14.9 and bumps the Go client nats.go to v1.53.1.
Server images (
charts/devtron/values.yaml,charts/devtron/devtron-bom.yaml,devtron-images.txt.source,manifests/yamls/nats-server.yaml,tests/integrationTesting/nats-server.yaml):-alpinebecause the preStop hook runs/bin/sh.nats.confis unchanged. We run a single node with file storage and no mirrors or sources, so none of the 2.10 to 2.14 config changes apply./usr/local/bin, so the existingcommand:works. The exporter flags are the same in 0.20.3.Client (
go.mod,go.sum,vendor/): nats.go v1.43.0 → v1.53.1 (nkeys → v0.4.15, klauspost/compress → v1.18.5). v1.53.1 is the newest release on Go 1.25; v1.54 and later need Go 1.26. It is bumped directly, so this PR does not wait on a common-lib release. pubsub-lib code is unchanged.Before merge: infra must mirror the 4 images to
quay.io/devtron. Otherwise NATS pods fail to pull.Rollback: 2.10 and later change the JetStream on-disk format, and NATS only supports downgrading 2.10 data to 2.9.22 or later. Putting 2.9.3 back on upgraded data is not safe. Instead, restore the NATS PVC snapshot, or start on an empty store. Services recreate their streams and consumers on startup.
How Has This Been Tested?
E2E with real nats-server binaries and Devtron's
common-lib/pubsub-lib. The old client is develop's nats.go v1.42.0 and the new client is v1.53.1. The test uses the chart's JetStream config (domaindevtron-jet, file store):UpdateStream(max_age) andUpdateConsumer(ack_wait) are accepted under the strict mode added in 2.12PubSubServiceImpl) receives events and updates its consumer on restartpubsub-liband nats.go compileNot tested: a Helm upgrade on a real cluster.
Checklist:
Does this PR introduce a user-facing change?
Related PRs
🤖 Generated with Claude Code